#ifndef __os_disk_h__
#define __os_disk_h__

#include<stdio.h>

#define FS_NAME_SIZE	256
#define FS_MAX			32

typedef struct __cfg_disk{
	char fs[FS_MAX][FS_NAME_SIZE];
	int samplesec;
	int fsN;
}CFG_DISK;

typedef struct __os_filesystem_usage{
	char Sz[8];
	char Used[8];
	char Avail[8];
	char UsePercent[8];
	char MountPoint[64];
}OS_FS_USE;

int filesystem_usage(int ProbeIdx,  char* fsName,
	struct __os_filesystem_usage* OsFsUsage);

void filesystem_usage_print(struct __os_filesystem_usage* OsFsUsage);

int load_conf_filesystems(char* cfgfile);

void probe_filesystem_usage(void);

#endif